const rr = require('./10-test');

const express = require('express');

const app = express();
//中间件处理参数

app.use(function (req, res, next) {
    req.query.a = req.query.a.replace(/</g, '&lt').replace(/>/g, '&gt;')

    next();
})
//注册路由模块
app.use('/admin', rr);

app.listen(89, () => {
    console.log('http://127.0.0.1:89')
})